package myschool.object.student;

public class Girl {
    private String name;
    public void setName(String i) {
        this.name = i;
    }
    public  String getName(){
        return this.name;
    }
    public  void marry(Boy boy){
        System.out.println(this.name+"和"+boy.getNmae()+"结婚了");
    }
}
